<?php session_start();

	if($_REQUEST['v'] != NULL){
        include("../database.php");
            		
    	$video = $_REQUEST['v'];
    	$consulta = "SELECT * FROM videos WHERE id = '$video' ";
    	$envio = mysql_query($consulta, $enlace);
    	$datos = mysql_fetch_array($envio);    	

    	$cuerpo = "Error en el video:\n";
    	$cuerpo .= "Video (id): "  . $video . "\n";
    	$cuerpo .= "Titulo: " . $datos['titulo'] . "\n";
    	$cuerpo .= "Emisor: " . $_SESSION['nick'] . "\n";
            		
            		mail("izeup@izeup.com", "Video inadecuado", $cuerpo);

	}
?>

		<script type="text/javascript">
			<!--
     			var ventana = window.self; 
     			ventana.opener = window.self; 
     			window.close();
			//-->
		</script>
